#include<iostream>
using namespace std;
int main()
{
    int a,b;
    while((scanf("%d %d",&a,&b)!=EOF))
    {
        if(a==0&&b==0)
            break;
        int c;
        c=a+b;
        cout<<c<<endl;
    }
    return 0;
}